package com.test.demo.algorithm.dp;

public class FibonacciSequence {


    public static void main(String[] args) {
        //System.out.println(fig(20));
        int sum = add(2, 3);
        System.out.println(sum);
        sum(2,3);
    }

    public static int add(int a,int b){
        return a+b;
    }

    public static void sum(int a,int b){
        System.out.println(a+b);
    }

    public static int fig(int n){
        if (n==1||n==2)return 1;
        return fig(n-1)+fig(n-2);
    }


}
